import Vue from 'vue'
import Router from 'vue-router'
import video from './views/video.vue'
import index from './views/index.vue'
Vue.use(Router)
 
export default new Router({
    linkActiveClass: 'active',
    // 路由配置
    routes: [
        {
            name:'video',
            path: '/video/:id',
            component: video
        },
        {
            name:'/',
            path: '/',
            component: index
        }
    ]
}) 